//
//  AdModel.m
//  JinMaJiaDemo
//
//  Created by GripMeMory on 15/9/11.
//  Copyright (c) 2015年 GripMeMory. All rights reserved.
//

#import "AdModel.h"

#define PLISTFILENAME @"Property List.plist"

#define PATH  [[NSBundle mainBundle]pathForResource:PLISTFILENAME ofType:nil]

@implementation AdModel

- (instancetype)initWithImageName
{
    self = [super init];
    if (self)
    {
        _imageArr = [NSArray arrayWithContentsOfFile:PATH][0];
    }
    return self;
}

- (instancetype)initWithImageNameAndAdTitleArray
{
    _titleArr = [NSArray arrayWithContentsOfFile:PATH][1];
    
    return [self initWithImageName];
}

+ (id)adDataModelWithImageName
{
    return [[self alloc]initWithImageName];
}

+ (id)adDataModelWithImageNameAndAdTitleArray
{
    return [[self alloc]initWithImageNameAndAdTitleArray];
}

@end
